package com.demo.xmtx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.demo.xmtx.enums.GisEnum;
import lombok.*;

import java.io.Serializable;

@Data
@TableName("gis_object")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Setter
public class GisObject implements Serializable {


    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private String instanceType;

    private String instanceCode;

    private GisEnum gisType;

    //    @TableField(typeHandler = GeometryTypeHandler.class)
//    private Geometry geom;

    public static void main(String[] args) {
        GisObject object = new GisObject();
        object.setId(1l);
        object.setName("xmtx");
        object.getId();
        System.out.println(object);
    }
}